/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

h3 {
    margin-bottom: 1rem;
    color: #444;
}

.main-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

/* 密码显示区域 */
.password-display {
    display: flex;
    margin-bottom: 2rem;
}

#password-field {
    flex: 1;
    padding: 0.8rem 1rem;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    background-color: #f9f9f9;
}

#copy-btn {
    padding: 0.8rem 1.5rem;
    background-color: #4caf50;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

#copy-btn:hover {
    background-color: #3d8b40;
}

/* 设置组 */
.setting-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.setting-group:last-child {
    border-bottom: none;
}

/* 滑块设置 */
.slider-container {
    padding: 0.5rem 0;
}

.slider {
    width: 100%;
    height: 5px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 5px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #4caf50;
    border-radius: 50%;
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #4caf50;
    border-radius: 50%;
    cursor: pointer;
}

/* 复选框样式 */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
}

.checkbox-item input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
}

/* 密码强度 */
.password-strength {
    margin: 1.5rem 0;
    font-weight: bold;
}

#strength-value {
    margin-left: 0.5rem;
}

#strength-value.weak {
    color: #f44336;
}

#strength-value.medium {
    color: #ff9800;
}

#strength-value.strong {
    color: #4caf50;
}

#strength-value.very-strong {
    color: #2e7d32;
}

/* 生成按钮 */
.generate-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #2196f3;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.2s;
}

.generate-btn:hover {
    background-color: #0b7dda;
}

/* 底部 */
footer {
    margin-top: 2rem;
    text-align: center;
    color: #777;
    font-size: 0.9rem;
}

footer a {
    color: #2196f3;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .main-container {
        padding: 1.5rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
} 